package com.mingdong.first.shipeiqi;

import com.mingdong.first.shipeiqi.adapter.TurkeyAdapter;
import com.mingdong.first.shipeiqi.duck.Duck;
import com.mingdong.first.shipeiqi.turkey.Turkey;
import com.mingdong.first.shipeiqi.turkey.WildTurkey;

public class Test1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Turkey turkey = new WildTurkey();
		
		Duck turkeyAdapter = new TurkeyAdapter(turkey);
		
		turkey.gobble();
		turkey.fly();
		
		turkeyAdapter.quack();
		turkeyAdapter.fly();
		
	}

}
